/**
 * 分页模型
 * totalPage: 分页总共有多少页
 * currentPage: 当前页号
 * callback: 点击页号或者前进后退按钮后触发该回调
 * size: 分页的类型，可选值为：sm|md|lg
 */
export class PaginationModel {
  public totalPage: number;
  public currentPage: number;
  public size: string;
  public callback: (currentPage: number) => void;
  constructor(totalPage: number, currentPage: number, callback: (currentPage: number) => void, size: string){
    this.totalPage = totalPage;
    this.currentPage = currentPage;
    this.callback = callback;
    this.size = size || "lg";
  };
}
